package com.lhy.vaccine_admin.feign;

import com.lhy.vaccine_admin.form.SearchForm;
import com.lhy.vaccine_admin.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("vaccine-stock")
public interface VaccineCheck {

    @GetMapping("/stock/vaccineStock/pageList/{currentPage}/{pageSize}")
    R getVaccineList(@PathVariable("currentPage") Integer currentPage,
                            @PathVariable("pageSize") Integer pageSize);

    @PostMapping("/stock/vaccineStock/search")
    R getSelectByLike(@RequestBody SearchForm searchForm);
}
